package cc.mrbird.event.domain;

import cc.mrbird.common.annotation.ExportConfig;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "event_log")
public class EventLog  implements Serializable{   //自动记录这个过程的时间信息
    private static final long serialVersionUID = 7780821231535881125L;
    @Id
    @GeneratedValue(generator = "JDBC")
    @Column(name = "eventLog_id")
    private Integer eventLog_id;

    @Column(name = "assetMana_id")
    @ExportConfig(value = "设备id")
    private Integer assetMana_id;

    @Column(name = "no_confirmed")
    @ExportConfig(value = "待确认")
    private String no_confirmed;

    @Column(name = "no_confirmed_date")
    @ExportConfig(value = "待确认时间",convert = "c:cc.mrbird.common.util.poi.convert.TimeConvert")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date no_confirmed_date;

    @Column(name = "been_confirmed")
    @ExportConfig(value = "已确认")
    private String been_confirmed;

    @Column(name = "been_confirmed_date")
    @ExportConfig(value = "已确认时间",convert = "c:cc.mrbird.common.util.poi.convert.TimeConvert")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date been_confirmed_date;

    @Column(name = "been_deal")
    @ExportConfig(value = "已处理")
    private String been_deal;

    @Column(name = "been_deal_date")
    @ExportConfig(value = "已处理时间",convert = "c:cc.mrbird.common.util.poi.convert.TimeConvert")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date been_deal_date;

    public Integer getEventLog_id() {
        return eventLog_id;
    }

    public void setEventLog_id(Integer eventLog_id) {
        this.eventLog_id = eventLog_id;
    }

    public String getNo_confirmed() {
        return no_confirmed;
    }

    public void setNo_confirmed(String no_confirmed) {
        this.no_confirmed = no_confirmed;
    }

    public Date getNo_confirmed_date() {
        return no_confirmed_date;
    }

    public void setNo_confirmed_date(Date no_confirmed_date) {
        this.no_confirmed_date = no_confirmed_date;
    }

    public String getBeen_confirmed() {
        return been_confirmed;
    }

    public void setBeen_confirmed(String been_confirmed) {
        this.been_confirmed = been_confirmed;
    }

    public Date getBeen_confirmed_date() {
        return been_confirmed_date;
    }

    public void setBeen_confirmed_date(Date been_confirmed_date) {
        this.been_confirmed_date = been_confirmed_date;
    }

    public String getBeen_deal() {
        return been_deal;
    }

    public void setBeen_deal(String been_deal) {
        this.been_deal = been_deal;
    }

    public Date getBeen_deal_date() {
        return been_deal_date;
    }

    public void setBeen_deal_date(Date been_deal_date) {
        this.been_deal_date = been_deal_date;
    }

    @Override
    public String toString() {
        return "EventLog{" +
                "eventLog_id=" + eventLog_id +
                ", no_confirmed='" + no_confirmed + '\'' +
                ", no_confirmed_date=" + no_confirmed_date +
                ", been_confirmed='" + been_confirmed + '\'' +
                ", been_confirmed_date=" + been_confirmed_date +
                ", been_deal='" + been_deal + '\'' +
                ", been_deal_date=" + been_deal_date +
                '}';
    }
}
